Optimal. Leaf size=102 \[ -\frac {c \sqrt {c+d x^2}}{a x}-\frac {(b c-a d)^{3/2} \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{3/2} b}+\frac {d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {485, 537, 223,
212, 385, 211} \begin {gather*} -\frac {(b c-a d)^{3/2} \text {ArcTan}\left (\frac {x \sqrt {b c-a d}}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{3/2} b}-\frac {c \sqrt {c+d x^2}}{a x}+\frac {d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 212
Rule 223
Rule 385
Rule 485
Rule 537
Rubi steps
\begin {align*} \int \frac {\left (c+d x^2\right )^{3/2}}{x^2 \left (a+b x^2\right )} \, dx &=-\frac {c \sqrt {c+d x^2}}{a x}+\frac {\int \frac {-c (b c-2 a d)+a d^2 x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{a}\\ &=-\frac {c \sqrt {c+d x^2}}{a x}+\frac {d^2 \int \frac {1}{\sqrt {c+d x^2}} \, dx}{b}-\frac {(b c-a d)^2 \int \frac {1}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{a b}\\ &=-\frac {c \sqrt {c+d x^2}}{a x}+\frac {d^2 \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{b}-\frac {(b c-a d)^2 \text {Subst}\left (\int \frac {1}{a-(-b c+a d) x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{a b}\\ &=-\frac {c \sqrt {c+d x^2}}{a x}-\frac {(b c-a d)^{3/2} \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{a^{3/2} b}+\frac {d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 129, normalized size = 1.26 \begin {gather*} \frac {(b c-a d)^{3/2} x \tan ^{-1}\left (\frac {a \sqrt {d}+b x \left (\sqrt {d} x-\sqrt {c+d x^2}\right )}{\sqrt {a} \sqrt {b c-a d}}\right )-\sqrt {a} \left (b c \sqrt {c+d x^2}+a d^{3/2} x \log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right )\right )}{a^{3/2} b x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1329\) vs.
\(2(84)=168\).
time = 0.12, size = 1330, normalized size = 13.04
method | result | size |
risch | \(-\frac {c \sqrt {d \,x^{2}+c}}{a x}+\frac {d^{\frac {3}{2}} \ln \left (x \sqrt {d}+\sqrt {d \,x^{2}+c}\right )}{b}+\frac {a \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right ) d^{2}}{2 \sqrt {-a b}\, b \sqrt {-\frac {a d -b c}{b}}}-\frac {\ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right ) c d}{\sqrt {-a b}\, \sqrt {-\frac {a d -b c}{b}}}+\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right ) c^{2}}{2 a \sqrt {-a b}\, \sqrt {-\frac {a d -b c}{b}}}-\frac {a \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right ) d^{2}}{2 \sqrt {-a b}\, b \sqrt {-\frac {a d -b c}{b}}}+\frac {\ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right ) c d}{\sqrt {-a b}\, \sqrt {-\frac {a d -b c}{b}}}-\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right ) c^{2}}{2 a \sqrt {-a b}\, \sqrt {-\frac {a d -b c}{b}}}\) | \(986\) |
default | \(\text {Expression too large to display}\) | \(1330\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.48, size = 718, normalized size = 7.04 \begin {gather*} \left [\frac {2 \, a d^{\frac {3}{2}} x \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) - {\left (b c - a d\right )} x \sqrt {-\frac {b c - a d}{a}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left (a^{2} c x - {\left (a b c - 2 \, a^{2} d\right )} x^{3}\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {b c - a d}{a}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, \sqrt {d x^{2} + c} b c}{4 \, a b x}, -\frac {4 \, a \sqrt {-d} d x \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left (b c - a d\right )} x \sqrt {-\frac {b c - a d}{a}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left (a^{2} c x - {\left (a b c - 2 \, a^{2} d\right )} x^{3}\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {b c - a d}{a}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) + 4 \, \sqrt {d x^{2} + c} b c}{4 \, a b x}, \frac {a d^{\frac {3}{2}} x \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) - {\left (b c - a d\right )} x \sqrt {\frac {b c - a d}{a}} \arctan \left (\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {b c - a d}{a}}}{2 \, {\left ({\left (b c d - a d^{2}\right )} x^{3} + {\left (b c^{2} - a c d\right )} x\right )}}\right ) - 2 \, \sqrt {d x^{2} + c} b c}{2 \, a b x}, -\frac {2 \, a \sqrt {-d} d x \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left (b c - a d\right )} x \sqrt {\frac {b c - a d}{a}} \arctan \left (\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {b c - a d}{a}}}{2 \, {\left ({\left (b c d - a d^{2}\right )} x^{3} + {\left (b c^{2} - a c d\right )} x\right )}}\right ) + 2 \, \sqrt {d x^{2} + c} b c}{2 \, a b x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d x^{2}\right )^{\frac {3}{2}}}{x^{2} \left (a + b x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d\,x^2+c\right )}^{3/2}}{x^2\,\left (b\,x^2+a\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________